home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
wdj0697.zip
/
WIESMAN.ZIP
/
DIALCTRL.H
< prev
next >
Wrap
C/C++ Source or Header
|
1997-01-20
|
1KB
|
55 lines
// DialCtrl.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDialControl window
// dial notification codes
#define DN_UP 1
#define DN_DOWN 2
#define DN_CLICK 3
class CDialControl : public CWnd
{
// Construction
public:
CDialControl();
// Attributes
public:
int m_nValue;
int m_nMax;
int m_nMin;
int m_nRate;
BOOL m_bDragging;
// Operations
public:
void GetLinePoints(int nLength, int nPercent, CPoint &point1, CPoint &point2);
void CalculateValFromPoint(CPoint point);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialControl)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CDialControl();
// Generated message map functions
protected:
//{{AFX_MSG(CDialControl)
afx_msg void OnPaint();
afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg void OnKillFocus(CWnd* pNewWnd);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg UINT OnGetDlgCode();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////